package com.lemon.smartsafety.entity.common;

import java.io.Serializable;

/**
 * Created by Cooliean on 16/3/18.
 */
public class CommonVo implements SelectDataI,Serializable{
    private String id = "";
    private String name = "";
    private boolean selected = false;

    public CommonVo(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public CommonVo() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getTitle() {
        return getName();
    }

    @Override
    public String getValue() {
        return getId();
    }

    @Override
    public boolean isSelectedI() {
        return isSelected();
    }

    @Override
    public void setSelectedI(boolean sel) {
        setSelected(sel);
    }

    @Override
    public Object getOther() {
        return null;
    }


    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
